type runtime._type
188 uses
runtime (current package)
alg.go#L219: func typehash(t *_type, p unsafe.Pointer, h uintptr) uintptr {
alg.go#L271: func reflect_typehash(t *_type, p unsafe.Pointer, h uintptr) uintptr {
alg.go#L318: func efaceeq(t *_type, x, y unsafe.Pointer) bool {
arena.go#L113: t := (*_type)(efaceOf(&typ).data)
arena.go#L231: return userArenaChunkBytes/goarch.PtrSize/8 + unsafe.Sizeof(_type{})
arena.go#L279: func (a *userArena) new(typ *_type) unsafe.Pointer {
arena.go#L367: func (a *userArena) alloc(typ *_type, cap int) unsafe.Pointer {
arena.go#L449: func (s *mspan) userArenaNextFree(typ *_type, cap int) unsafe.Pointer {
arena.go#L539: func userArenaHeapBitsSetSliceType(typ *_type, n int, ptr unsafe.Pointer, s *mspan) {
arena.go#L553: func userArenaHeapBitsSetType(typ *_type, ptr unsafe.Pointer, s *mspan) {
arena.go#L1125: *(*uintptr)(unsafe.Pointer(&s.largeType.GCData)) = s.limit + unsafe.Sizeof(_type{})
cgocall.go#L641: func cgoCheckArg(t *_type, p unsafe.Pointer, indir, top bool, msg cgoErrorMsg) {
cgocall.go#L677: it := *(**_type)(p)
cgocheck.go#L79: func cgoCheckMemmove(typ *_type, dst, src unsafe.Pointer) {
cgocheck.go#L91: func cgoCheckMemmove2(typ *_type, dst, src unsafe.Pointer, off, size uintptr) {
cgocheck.go#L112: func cgoCheckSliceCopy(typ *_type, dst, src unsafe.Pointer, n int) {
cgocheck.go#L135: func cgoCheckTypedBlock(typ *_type, src unsafe.Pointer, off, size uintptr) {
chan.go#L41: elemtype *_type // element type
chan.go#L392: func sendDirect(t *_type, sg *sudog, src unsafe.Pointer) {
chan.go#L405: func recvDirect(t *_type, sg *sudog, dst unsafe.Pointer) {
checkptr.go#L9: func checkptrAlignment(p unsafe.Pointer, elem *_type, n uintptr) {
error.go#L36: _interface *_type
error.go#L37: concrete *_type
error.go#L38: asserted *_type
heapdump.go#L120: t [typeCacheAssoc]*_type
heapdump.go#L165: func dumptype(t *_type) {
heapdump.go#L226: func dumpfinalizer(obj unsafe.Pointer, fn *funcval, fint *_type, ot *ptrtype) {
heapdump.go#L436: func finq_callback(fn *funcval, obj unsafe.Pointer, nret uintptr, fint *_type, ot *ptrtype) {
iface.go#L30: func itabHashFunc(inter *interfacetype, typ *_type) uintptr {
iface.go#L44: func getitab(inter *interfacetype, typ *_type, canfail bool) *itab {
iface.go#L107: func (t *itabTableType) find(inter *interfacetype, typ *_type) *itab {
iface.go#L292: func panicdottypeE(have, want, iface *_type) {
iface.go#L298: func panicdottypeI(have *itab, want, iface *_type) {
iface.go#L299: var t *_type
iface.go#L308: func panicnildottype(want *_type) {
iface.go#L336: uint16Type *_type = efaceOf(&uint16Eface)._type
iface.go#L337: uint32Type *_type = efaceOf(&uint32Eface)._type
iface.go#L338: uint64Type *_type = efaceOf(&uint64Eface)._type
iface.go#L339: stringType *_type = efaceOf(&stringEface)._type
iface.go#L340: sliceType *_type = efaceOf(&sliceEface)._type
iface.go#L352: func convT(t *_type, v unsafe.Pointer) unsafe.Pointer {
iface.go#L366: func convTnoptr(t *_type, v unsafe.Pointer) unsafe.Pointer {
iface.go#L467: func assertE2I(inter *interfacetype, t *_type) *itab {
iface.go#L475: func assertE2I2(inter *interfacetype, t *_type) *itab {
iface.go#L485: func typeAssert(s *abi.TypeAssert, t *_type) *itab {
iface.go#L525: func buildTypeAssertCache(oldC *abi.TypeAssertCache, typ *_type, tab *itab) *abi.TypeAssertCache {
iface.go#L549: addEntry := func(typ *_type, tab *itab) {
iface.go#L562: addEntry((*_type)(unsafe.Pointer(e.Typ)), (*itab)(unsafe.Pointer(e.Itab)))
iface.go#L579: func interfaceSwitch(s *abi.InterfaceSwitch, t *_type) (int, *itab) {
iface.go#L631: func buildInterfaceSwitchCache(oldC *abi.InterfaceSwitchCache, typ *_type, case_ int, tab *itab) *abi.InterfaceSwitchCache {
iface.go#L655: addEntry := func(typ *_type, case_ int, tab *itab) {
iface.go#L669: addEntry((*_type)(unsafe.Pointer(e.Typ)), e.Case, (*itab)(unsafe.Pointer(e.Itab)))
malloc.go#L1067: func mallocgc(size uintptr, typ *_type, needzero bool) unsafe.Pointer {
malloc.go#L1208: func mallocgcTiny(size uintptr, typ *_type) (unsafe.Pointer, uintptr) {
malloc.go#L1364: func mallocgcSmallNoscan(size uintptr, typ *_type, needzero bool) (unsafe.Pointer, uintptr) {
malloc.go#L1509: func mallocgcSmallScanNoHeader(size uintptr, typ *_type) (unsafe.Pointer, uintptr) {
malloc.go#L1600: func mallocgcSmallScanHeader(size uintptr, typ *_type) (unsafe.Pointer, uintptr) {
malloc.go#L1639: header := (**_type)(x)
malloc.go#L1693: func mallocgcLarge(size uintptr, typ *_type, needzero bool) (unsafe.Pointer, uintptr) {
malloc.go#L1795: func preMallocgcDebug(size uintptr, typ *_type) unsafe.Pointer {
malloc.go#L1825: func postMallocgcDebug(x unsafe.Pointer, elemsize uintptr, typ *_type) {
malloc.go#L2140: func newobject(typ *_type) unsafe.Pointer {
malloc.go#L2145: func maps_newobject(typ *_type) unsafe.Pointer {
malloc.go#L2161: func reflect_unsafe_New(typ *_type) unsafe.Pointer {
malloc.go#L2166: func reflectlite_unsafe_New(typ *_type) unsafe.Pointer {
malloc.go#L2183: func newarray(typ *_type, n int) unsafe.Pointer {
malloc.go#L2209: func reflect_unsafe_NewArray(typ *_type, n int) unsafe.Pointer {
malloc.go#L2214: func maps_newarray(typ *_type, n int) unsafe.Pointer {
malloc_generated.go#L13: func mallocgcSmallScanNoHeaderSC1(size uintptr, typ *_type, needzero bool) unsafe.Pointer {
malloc_generated.go#L166: func mallocgcSmallScanNoHeaderSC2(size uintptr, typ *_type, needzero bool) unsafe.Pointer {
malloc_generated.go#L319: func mallocgcSmallScanNoHeaderSC3(size uintptr, typ *_type, needzero bool) unsafe.Pointer {
malloc_generated.go#L472: func mallocgcSmallScanNoHeaderSC4(size uintptr, typ *_type, needzero bool) unsafe.Pointer {
malloc_generated.go#L625: func mallocgcSmallScanNoHeaderSC5(size uintptr, typ *_type, needzero bool) unsafe.Pointer {
malloc_generated.go#L778: func mallocgcSmallScanNoHeaderSC6(size uintptr, typ *_type, needzero bool) unsafe.Pointer {
malloc_generated.go#L931: func mallocgcSmallScanNoHeaderSC7(size uintptr, typ *_type, needzero bool) unsafe.Pointer {
malloc_generated.go#L1084: func mallocgcTinySC2(size uintptr, typ *_type, needzero bool) unsafe.Pointer {
malloc_generated.go#L1191: func mallocgcSmallNoScanSC2(size uintptr, typ *_type, needzero bool) unsafe.Pointer {
malloc_generated.go#L1290: func mallocgcSmallNoScanSC3(size uintptr, typ *_type, needzero bool) unsafe.Pointer {
malloc_generated.go#L1389: func mallocgcSmallNoScanSC4(size uintptr, typ *_type, needzero bool) unsafe.Pointer {
malloc_generated.go#L1488: func mallocgcSmallNoScanSC5(size uintptr, typ *_type, needzero bool) unsafe.Pointer {
malloc_generated.go#L1587: func mallocgcSmallNoScanSC6(size uintptr, typ *_type, needzero bool) unsafe.Pointer {
malloc_generated.go#L1686: func mallocgcSmallNoScanSC7(size uintptr, typ *_type, needzero bool) unsafe.Pointer {
malloc_generated.go#L1785: func mallocgcTinySlowPath(size uintptr, typ *_type, needzero bool) unsafe.Pointer {
malloc_generated.go#L1930: func mallocgcSmallScanSlowPath(size uintptr, typ *_type, needzero bool, spc spanClass, elemsize uintptr) unsafe.Pointer {
malloc_generated.go#L2107: func mallocgcSmallNoScanSlowPath(size uintptr, typ *_type, needzero bool, spc spanClass, elemsize uintptr) unsafe.Pointer {
malloc_stubs.go#L44: func malloc0(size uintptr, typ *_type, needzero bool) unsafe.Pointer {
malloc_stubs.go#L55: func mallocPanic(size uintptr, typ *_type, needzero bool) unsafe.Pointer {
malloc_stubs.go#L59: func mallocgcSlowPathStub(size uintptr, typ *_type, needzero bool, spc spanClass, elemsize uintptr) unsafe.Pointer {
malloc_stubs.go#L65: func mallocStub(size uintptr, typ *_type, needzero bool) unsafe.Pointer {
malloc_stubs.go#L140: func postMallocgc(x unsafe.Pointer, typ *_type, size uintptr, elemsize uintptr) {
malloc_stubs.go#L189: func inlinedMalloc(mp *m, size uintptr, typ *_type, needzero bool) unsafe.Pointer {
malloc_stubs.go#L193: func doubleCheckSmallScanNoHeader(size uintptr, typ *_type, mp *m) {
malloc_stubs.go#L210: func smallStub(mp *m, size uintptr, typ *_type, needzero bool) unsafe.Pointer {
malloc_stubs.go#L334: func doubleCheckSmallNoScan(typ *_type, mp *m) {
malloc_stubs.go#L346: func doubleCheckTiny(size uintptr, typ *_type, mp *m) {
malloc_stubs.go#L360: func tinyStub(mp *m, size uintptr, typ *_type, needzero bool) unsafe.Pointer {
malloc_stubs.go#L537: func heapSetTypeNoHeaderStub(x, dataSize uintptr, typ *_type, span *mspan) uintptr {
malloc_stubs.go#L555: func writeHeapBitsSmallStub(span *mspan, x, dataSize uintptr, typ *_type) uintptr {
malloc_stubs.go#L620: func writeHeapBitsDoubleCheck(span *mspan, x, dataSize, src, src0, i, j, bits uintptr, typ *_type) {
malloc_tables_generated.go#L8: var mallocScanTable = [81]func(size uintptr, typ *_type, needzero bool) unsafe.Pointer{mallocPanic,
malloc_tables_generated.go#L91: var mallocNoScanTable = [81]func(size uintptr, typ *_type, needzero bool) unsafe.Pointer{mallocPanic,
mbarrier.go#L179: func wbZero(typ *_type, dst unsafe.Pointer) {
mbarrier.go#L192: func wbMove(typ *_type, dst, src unsafe.Pointer) {
mbarrier.go#L213: func reflect_typedmemmove(typ *_type, dst, src unsafe.Pointer) {
mbarrier.go#L230: func reflectlite_typedmemmove(typ *_type, dst, src unsafe.Pointer) {
mbarrier.go#L235: func maps_typedmemmove(typ *_type, dst, src unsafe.Pointer) {
mbarrier.go#L249: func reflectcallmove(typ *_type, dst, src unsafe.Pointer, size uintptr, regs *abi.RegArgs) {
mbarrier.go#L276: func typedslicecopy(typ *_type, dstPtr unsafe.Pointer, dstLen int, srcPtr unsafe.Pointer, srcLen int) int {
mbarrier.go#L343: func reflect_typedslicecopy(elemType *_type, dst, src slice) int {
mbarrier.go#L361: func typedmemclr(typ *_type, ptr unsafe.Pointer) {
mbarrier.go#L380: func reflect_typedmemclr(typ *_type, ptr unsafe.Pointer) {
mbarrier.go#L385: func maps_typedmemclr(typ *_type, ptr unsafe.Pointer) {
mbarrier.go#L390: func reflect_typedmemclrpartial(typ *_type, ptr unsafe.Pointer, off, size uintptr) {
mbarrier.go#L402: func reflect_typedarrayclear(typ *_type, ptr unsafe.Pointer, len int) {
mbitmap.go#L104: typ *_type
mbitmap.go#L152: var typ *_type
mbitmap.go#L155: typ = *(**_type)(unsafe.Pointer(addr))
mbitmap.go#L160: typ = (*_type)(atomic.Loadp(unsafe.Pointer(&span.largeType)))
mbitmap.go#L624: func (span *mspan) writeHeapBitsSmall(x, dataSize uintptr, typ *_type) (scanSize uintptr) {
mbitmap.go#L707: func heapSetTypeNoHeader(x, dataSize uintptr, typ *_type, span *mspan) uintptr {
mbitmap.go#L718: func heapSetTypeSmallHeader(x, dataSize uintptr, typ *_type, header **_type, span *mspan) uintptr {
mbitmap.go#L746: func heapSetTypeLarge(x, dataSize uintptr, typ *_type, span *mspan) uintptr {
mbitmap.go#L804: func doubleCheckHeapType(x, dataSize uintptr, gctyp *_type, header **_type, span *mspan) {
mbitmap.go#L833: func doubleCheckHeapPointers(x, dataSize uintptr, typ *_type, header **_type, span *mspan) {
mbitmap.go#L890: func doubleCheckHeapPointersInterior(x, interior, size, dataSize uintptr, typ *_type, header **_type, span *mspan) {
mbitmap.go#L968: func doubleCheckTypePointersOfType(s *mspan, typ *_type, addr, size uintptr) {
mbitmap.go#L1464: func typeBitsBulkBarrier(typ *_type, dst, src, size uintptr) {
mbitmap.go#L1822: var et *_type
mfinal.go#L63: fint *_type // type of first argument of fn
mfinal.go#L101: func queuefinalizer(p unsafe.Pointer, fn *funcval, nret uintptr, fint *_type, ot *ptrtype) {
mfinal.go#L153: func iterate_finq(callback func(*funcval, unsafe.Pointer, uintptr, *_type, *ptrtype)) {
mheap.go#L515: largeType *_type // malloc header for large objects.
mheap.go#L2096: fint *_type // May be a heap pointer, but always live.
mheap.go#L2101: func addfinalizer(p unsafe.Pointer, f *funcval, nret uintptr, fint *_type, ot *ptrtype) bool {
mheap.go#L2204: ptrType *_type
mheap.go#L2209: func setFinalizerContext(ptr unsafe.Pointer, ptrType *_type, createPC, funcPC uintptr) {
mheap.go#L2216: func setCleanupContext(ptr unsafe.Pointer, ptrType *_type, createPC, funcPC uintptr, cleanupID uint64) {
netpoll.go#L732: pdType *_type = efaceOf(&pdEface)._type
plugin.go#L83: t := toRType((*_type)(unsafe.Pointer(md.types))).typeOff(ptab.typ) // TODO can this stack of conversions be simpler?
race0.go#L19: func raceReadObjectPC(t *_type, addr unsafe.Pointer, callerpc, pc uintptr) { throw("race") }
race0.go#L20: func raceWriteObjectPC(t *_type, addr unsafe.Pointer, callerpc, pc uintptr) { throw("race") }
runtime1.go#L714: return unsafe.Pointer(toRType((*_type)(rtype)).typeOff(typeOff(off)))
runtime1.go#L729: return toRType((*_type)(rtype)).textOff(textOff(off))
runtime1.go#L743: return unsafe.Pointer(toRType((*_type)(rtype)).typeOff(typeOff(off)))
runtime2.go#L190: _type *_type
slice.go#L39: func makeslicecopy(et *_type, tolen int, fromlen int, from unsafe.Pointer) unsafe.Pointer {
slice.go#L102: func makeslice(et *_type, len, cap int) unsafe.Pointer {
slice.go#L120: func makeslice64(et *_type, len64, cap64 int64) unsafe.Pointer {
slice.go#L178: func growslice(oldPtr unsafe.Pointer, newLen, oldCap, num int, et *_type) slice {
slice.go#L303: func growsliceNoAlias(oldPtr unsafe.Pointer, newLen, oldCap, num int, et *_type) slice {
slice.go#L369: func reflect_growslice(et *_type, old slice, num int) slice {
slice.go#L442: func moveSlice(et *_type, old unsafe.Pointer, len, cap int) (unsafe.Pointer, int, int) {
slice.go#L474: func moveSliceNoCap(et *_type, old unsafe.Pointer, len int) (unsafe.Pointer, int, int) {
slice.go#L510: func growsliceBuf(oldPtr unsafe.Pointer, newLen, oldCap, num int, et *_type, bufPtr unsafe.Pointer, bufLen int) slice {
slice.go#L547: func growsliceBufNoAlias(oldPtr unsafe.Pointer, newLen, oldCap, num int, et *_type, bufPtr unsafe.Pointer, bufLen int) slice {
stubs.go#L272: func reflectcall(stackArgsType *_type, fn, stackArgs unsafe.Pointer, stackArgsSize, stackRetOffset, frameSize uint32, regArgs *abi.RegArgs)
symtab.go#L447: typemap map[*_type]*_type // *_type to use from previous module
symtab.go#L477: var pinnedTypemaps []map[*_type]*_type
type.go#L25: type _type = abi.Type
type.go#L87: func getGCMask(t *_type) *byte {
type.go#L102: func getGCMaskOnDemand(t *_type) *byte {
type.go#L198: func buildGCMask(t *_type, dst bitCursor) {
type.go#L328: func resolveTypeOff(ptrInModule unsafe.Pointer, off typeOff) *_type {
type.go#L353: return (*_type)(res)
type.go#L356: resType := (*_type)(unsafe.Pointer(res))
type.go#L367: func (t rtype) typeOff(off typeOff) *_type {
type.go#L448: typehash := make(map[uint32][]*_type, len(prevTypelinks))
type.go#L473: tm := make(map[*_type]*_type, len(mdTypelinks))
type.go#L497: moduleToTypelinks map[*moduledata][]*_type
type.go#L508: func moduleTypelinks(md *moduledata) []*_type {
type.go#L523: ret := make([]*_type, 0, md.typedesclen/(2*unsafe.Sizeof(_type{})))
type.go#L541: typ := (*_type)(unsafe.Pointer(td))
type.go#L548: moduleToTypelinks = make(map[*moduledata][]*_type)
type.go#L560: t1 *_type
type.go#L561: t2 *_type
type.go#L580: func typesEqual(t, v *_type, seen map[_typePair]struct{}) bool {
unsafe.go#L54: func unsafeslice(et *_type, ptr unsafe.Pointer, len int) {
unsafe.go#L75: func unsafeslice64(et *_type, ptr unsafe.Pointer, len64 int64) {
unsafe.go#L83: func unsafeslicecheckptr(et *_type, ptr unsafe.Pointer, len64 int64) {
unsafe.go#L118: func reflect_unsafeslice(et *_type, ptr unsafe.Pointer, len int) {